#include <windows.h>
#include <wgal.h>

int WINAPI WinMain(HINSTANCE hInst,
				   HINSTANCE hPrevInst,
				   LPSTR lpCmdLine,
				   int nShowCmd)
{
	if(!wgalInit())
		return EXIT_FAILURE;

	wgalMain();
	wgalDeinit();
	
	return wgalGetReturnValue();
}